package cn.ecnu.pojo.resume;

import cn.ecnu.common.validated.InsertGroup;
import cn.ecnu.common.validated.UpdateGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
@TableName(value = "resume_exp")
/*求职者-期望岗位 */
public class ResumeExp{

//    @Null(message = "数据添加时，expId不能赋值",groups = InsertGroup.class)
//    @NotNull(message = "数据更新时，expId不能为空",groups = UpdateGroup.class)
//    @TableId(value = "exp_id",type = IdType.AUTO)
//    private Integer expId;

    @TableId(value = "user_id",type = IdType.AUTO)
    @NotNull(message = "userId不能为空")
    private Integer userId;

    @NotBlank(message = "期望公司不能为空")
    private String expCompany;

    @NotBlank(message = "期望岗位不能为空")
    private String expPosition;

    @NotBlank(message = "期望工作地点不能为空")
    private String expJobLocation;

    private Integer expSalary;

    @NotBlank(message = "期望岗位类型不能为空")
    private String expJobType;

    private String expDetail;
}
